<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>兼容IE8的jQuery轮播图插件 - 站长素材</title>

<link rel="stylesheet" href="dist/pageSwitch.min.css">
<style type="text/css">
	*{
		padding: 0;
		margin: 0;
	}
	html,body{
		height: 100%;
	}
	#container {
			width: 100%;
			height: 500px;
			overflow: hidden;
	}
	.sections,.section {
		height:100%;
	}
	#container,.sections {
		position: relative;
	}
	.section {
		background-color: #000;
		background-size: cover;
		background-position: 50% 50%;
		text-align: center;
		color: white;
	}
	#section0 {
		background-image: url('images/1.jpg');
	}
	#section1 {
		background-image: url('images/2.jpg');
	}
	#section2 {
		background-image: url('images/3.jpg');
	}
	#section3 {
		background-image: url('images/4.jpg');
	}
</style>

</head>
<body>
<div id="container">
	<div class="sections">
		<div class="section" id="section0"></div>
		<div class="section" id="section1"><</div>
		<div class="section" id="section2"></div>
		<div class="section" id="section3"></div>
		<div class="section"id="section4"></div>
	</div>
</div>

<script src="js/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="dist/pageSwitch.min.js"></script>
<script>
	$("#container").PageSwitch({
		direction:'horizontal',
		easing:'ease-out',
		duration:1000,
		autoPlay:true,
		loop:'false'
	});
</script>


</body>
</html>